﻿using System;
using HslCommunication.Core.IMessage;

namespace HslCommunication.Profinet.Geniitek
{
	/// <summary>
	/// 短消息的报文内容
	/// </summary>
	// Token: 0x020000A4 RID: 164
	public class VibrationSensorShortMessage : INetMessage
	{
		/// <inheritdoc cref="P:HslCommunication.Core.IMessage.INetMessage.ProtocolHeadBytesLength" />
		// Token: 0x170001E3 RID: 483
		// (get) Token: 0x06000C3F RID: 3135 RVA: 0x00047CC1 File Offset: 0x00045EC1
		public int ProtocolHeadBytesLength
		{
			get
			{
				return 9;
			}
		}

		/// <inheritdoc cref="P:HslCommunication.Core.IMessage.INetMessage.HeadBytes" />
		// Token: 0x170001E4 RID: 484
		// (get) Token: 0x06000C40 RID: 3136 RVA: 0x00047CC5 File Offset: 0x00045EC5
		// (set) Token: 0x06000C41 RID: 3137 RVA: 0x00047CCD File Offset: 0x00045ECD
		public byte[] HeadBytes { get; set; }

		/// <inheritdoc cref="P:HslCommunication.Core.IMessage.INetMessage.ContentBytes" />
		// Token: 0x170001E5 RID: 485
		// (get) Token: 0x06000C42 RID: 3138 RVA: 0x00047CD6 File Offset: 0x00045ED6
		// (set) Token: 0x06000C43 RID: 3139 RVA: 0x00047CDE File Offset: 0x00045EDE
		public byte[] ContentBytes { get; set; }

		/// <inheritdoc cref="M:HslCommunication.Core.IMessage.INetMessage.CheckHeadBytesLegal(System.Byte[])" />
		// Token: 0x06000C44 RID: 3140 RVA: 0x00047CE8 File Offset: 0x00045EE8
		public bool CheckHeadBytesLegal(byte[] token)
		{
			bool flag = this.HeadBytes == null;
			bool result;
			if (flag)
			{
				result = false;
			}
			else
			{
				bool flag2 = this.HeadBytes[0] == 170;
				result = flag2;
			}
			return result;
		}

		/// <inheritdoc cref="M:HslCommunication.Core.IMessage.INetMessage.GetContentLengthByHeadBytes" />
		// Token: 0x06000C45 RID: 3141 RVA: 0x00047BE1 File Offset: 0x00045DE1
		public int GetContentLengthByHeadBytes()
		{
			return 0;
		}

		/// <inheritdoc cref="M:HslCommunication.Core.IMessage.INetMessage.GetHeadBytesIdentity" />
		// Token: 0x06000C46 RID: 3142 RVA: 0x00047BE1 File Offset: 0x00045DE1
		public int GetHeadBytesIdentity()
		{
			return 0;
		}

		/// <inheritdoc cref="P:HslCommunication.Core.IMessage.INetMessage.SendBytes" />
		// Token: 0x170001E6 RID: 486
		// (get) Token: 0x06000C47 RID: 3143 RVA: 0x00047D23 File Offset: 0x00045F23
		// (set) Token: 0x06000C48 RID: 3144 RVA: 0x00047D2B File Offset: 0x00045F2B
		public byte[] SendBytes { get; set; }
	}
}
